package com.sdhs.system.syncdata.util;

import com.sdhs.common.utils.spring.SpringUtils;
import org.springframework.context.*;
import org.springframework.context.i18n.*;
public class MessUtils {
//    MessageSource messageSource = SpringUtils.getBean(MessageSource.class);
    private static final MessageSource messageSource = (MessageSource) SpringUtils.getBean("messageSource");

    public MessUtils() {
    }

    public static String getMessage(String code) {
        return getMessage(code);
    }

    public static String getMessage(String resultCode, String... params) {
        try {
            return messageSource.getMessage(resultCode + "", params, LocaleContextHolder.getLocale());
        } catch (Exception var3) {
            return resultCode + "";
        }
    }
}
